import HttpUtil from '@/common/HttpUtil'

const seedlingBreedingApi = {
  findPage (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingBreeding/findPage'
    return HttpUtil.postJSON(postUrl, params)
  },
  save (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingBreeding/save'
    return HttpUtil.postFile(postUrl, params)
  },
  getInfo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingBreeding/getInfo/' + params.id
    return HttpUtil.get(postUrl, null)
  },
  remove (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingBreeding/delete/' + params.id
    return HttpUtil.delete(postUrl, null)
  },
  findList() {
    let postUrl = process.env.SURVEY_DOMAIN + '/gr/seedlingBreeding/findList'
    return HttpUtil.post(postUrl, null)
  }
}
export default seedlingBreedingApi;
